import 'package:f_base_sy/components/container_case.dart';
import 'package:f_base_sy/components/custom_scroll_view_case.dart';
import 'package:f_base_sy/components/gird_view_builder_case.dart';
import 'package:f_base_sy/components/gird_view_count_case.dart';
import 'package:f_base_sy/components/grid_view_case.dart';
import 'package:f_base_sy/components/image_case.dart';
import 'package:f_base_sy/components/layout_case.dart';
import 'package:f_base_sy/components/list_case.dart';
import 'package:f_base_sy/components/order_item_case.dart';
import 'package:f_base_sy/components/order_item_case_ai.dart';
import 'package:f_base_sy/components/order_list_case.dart';
import 'package:f_base_sy/components/scroll_case.dart';
import 'package:f_base_sy/components/stack_case.dart';
import 'package:f_base_sy/components/text_case.dart';
import 'package:f_base_sy/http/dio_case.dart';
import 'package:f_base_sy/http/statefull_case.dart';
import 'package:flutter/material.dart';
// 无状态组件(封装静态结构)
// class 自定义组件名称 extends StatelessWidget {}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('hello flutter'),
          backgroundColor: Colors.blue,
          centerTitle: true,
          leading: const Icon(Icons.menu),
          actions: const [
            Icon(Icons.search),
          ],
          foregroundColor: Colors.white,
        ),
        // body: const ScrollCase(),
        // body: ListCase(),
        // body: const OrderListCase(),
        // body: const GridViewCase(),
        // body: const GirdViewBuilderCase(),
        // body: const GirdViewBuilderCase(),
        // body: const GirdViewCountCase(),
        // body: const CustomScrollViewCase(),
        // body: const DioCase(),
        body: const StatefullCase(title: 'Hello'),
      ),
    );
  }
}
